import request from '@/utils/request'

// 查询缴费信息列表
export function listCostQuery(query) {
  return request({
    url: '/fund/costQuery/list',
    method: 'get',
    params: query
  })
}
// 查询缴费信息列表
export function listCostQuery1(query) {
  return request({
    url: '/fund/costQuery/list1',
    method: 'get',
    params: query
  })
}

// 查询缴费信息详细
export function getCostQuery(costId) {
  return request({
    url: '/fund/costQuery/' + costId,
    method: 'get'
  })
}

// 新增缴费信息
export function addCostQuery(data) {
  return request({
    url: '/fund/costQuery',
    method: 'post',
    data: data
  })
}

// 修改缴费信息
export function updateCostQuery(data) {
  return request({
    url: '/fund/costQuery',
    method: 'put',
    data: data
  })
}

// 修改缴费信息
export function getPrint(costId) {
  return request({
    url: '/fund/costQuery/getPrint/' + costId,
    method: 'get'
  })
}
// 申请发票
export function apply(costId) {
  return request({
    url: '/fund/costQuery/apply/' + costId,
    method: 'get'
  })
}
// 打印发票
export function print(costId) {
  return request({
    url: '/fund/costQuery/print/' + costId,
    method: 'get'
  })
}

// 删除缴费信息
export function delCostQuery(costId) {
  return request({
    url: '/fund/costQuery/' + costId,
    method: 'delete'
  })
}

export function applyCostQuery(costId) {
  return request({
    url: '/fund/costQuery/applyCostQuery/' + costId,
    method: 'get'
  })
}
export function downloadProof(costId) {
  return request({
    url: '/fund/costQuery/downloadProof/'+ costId,
    method: 'get'
  })
}
